<?php

use Illuminate\Database\Seeder;

class AdminSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        factory(\App\Models\Admin::class,3)->create();
        // 将第一个用户自定义
        $user = \App\Models\Admin::find(1);
        $user->nickname='哈哈';
        $user->username='admin';
        $user->save();
    }
}
